package team.tinavv.ssheasy.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.google.code.ssm.api.CacheKeyMethod;

@Entity
@Table(name = "SYSUSER")
public class SysUser implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name = "ID", unique = true, nullable = false, length = 36)
	private String id;

	@Column(name = "NAME", length = 100)
	private String name;

	@Column(name = "LOGINNAME", length = 100)
	private String loginname;

	@Column(name = "AGE")
	private Integer age;

	@Column(name = "PWD")
	private String pwd;

	@Column(name = "SEX")
	private String sex;

	@Column(name = "PHOTO", length = 100)
	private String photo;

	@Column(name = "CREATEDATETIME")
	private Date createdatetime;

	@Column(name = "UPDATEDATETIME")
	private Date updatedatetime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@CacheKeyMethod
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLoginname() {
		return loginname;
	}

	public void setLoginname(String loginname) {
		this.loginname = loginname;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	public Date getCreatedatetime() {
		return createdatetime;
	}

	public void setCreatedatetime(Date createdatetime) {
		this.createdatetime = createdatetime;
	}

	public Date getUpdatedatetime() {
		return updatedatetime;
	}

	public void setUpdatedatetime(Date updatedatetime) {
		this.updatedatetime = updatedatetime;
	}

}
